package com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance;

import static com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance.ProxyFactory.createCglibProxy;
import static com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance.ProxyFactory.createJavassistBytecodeDynamicProxy;
import static com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance.ProxyFactory.createJavassistDynProxy;
import static com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance.ProxyFactory.createJdkProxy;

public class DynamicProxyDemo {

    public static void main(String[] args) throws Exception {
        System.out.println(createJdkProxy().processBusiness());

        System.out.println(createCglibProxy().processBusiness());

        System.out.println(createJavassistDynProxy().processBusiness());

        System.out.println(createJavassistBytecodeDynamicProxy().processBusiness());
    }

}
